<?php
/**
 * Created by PhpStorm
 * @package app\api\validate
 * User: Brahma
 * Date: 2022/3/24
 * Time: 11:40 上午
 */

namespace app\api\validate;


use think\Validate;

class IndexValidate extends Validate {
	protected $rule = [
		'brand_id' => 'in:0,1,2,3,4',
		'goods_id' => 'require',
	];
	protected $message = [
		'brand_id.in' => '类型参数错误',
	];
	protected $scene = [
		'index'   => ['brand_id', 'keyword'],
		'details' => ['goods_id'],
	];
}
